<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="copyright" content="http://www.appcms.org" />
<link rel="stylesheet" href="skin/base.css">
<link rel="stylesheet" href="skin/apps.css">
<script src="js/zy_control.js"></script>
<script src="js/zy_click.js"></script>
<script src="js/config.js"></script>
<script src="js/common.js"></script>
</head>
<body>
<div id="main"></div>
</body>
<script>
	zy_init();
	function jump(k){
		if(l_apps[k]['model'] =='business'){
			localStorage['business_catid']=l_apps[k]['catid'];
			localStorage['business_catname']=l_apps[k]['title'];
			uexWindow.open('business_list','0','business_list.html','2','', '',4);
		}else if(l_apps[k]['model'] =='apps'){
			uexWindow.open(k,'0','apps/'+k+'/index.html','2','', '',0)
		}else if(l_apps[k]['model'] =='url'){
			localStorage['browserurl']=l_apps[k]['url'];
			uexWindow.open('browser','0','browser.html','2','', '',4);
		}else{
			uexWindow.open(k,'0',k+'.html','2','', '',0)
		}
	}

	window.uexOnload=function(type){
		if(!type){
			uexWindow.setBounce("1");
			uexWindow.onBounceStateChange=function(t,s){
　　　　　　		if(t=="0"||t=="1"){
　　　　　　　　		if(s=="2"){
						uexWindow.resetBounceView(t);
					}
				}
			}
			
			var html='<section>';
			for (k in l_apps) {
				html += '<center onclick="jump(\''+k+'\');"><img src="'+l_apps[k]['img']+'" style="background-color:'+l_apps[k]['bg']+'" /><span>'+l_apps[k]['title']+'</span></center>';
			}
			html += '</section>	';
			$$('main').innerHTML= html;
		}
	}
</script>
</html>